﻿<!DOCTYPE html>
<html>
<head>
    <title>Polldaddy Helper for WebMatrix - Reference</title>
    <link href="content/Site.css" rel="stylesheet" type="text/css" />
    <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
</head>
<body>
    <div class="container">
        <div class="header">
            <img src="content/images/webx-icon.png" alt="WebMatrix" />
            <img src="content/images/polldaddy-logo.png" alt="Polldaddy Logo" class="partnerLogo" />
            <h1>
                Microsoft WebMatrix Helpers</h1>
            <h2>
                Polldaddy Helper - Reference</h2>
        </div>
        <div class="content">
            <div class="navLinks">
                <a href="startHere.htm">Start Here</a> | <a href="reference.htm">Helper Reference</a>
            </div>
            <h3>Helper Methods</h3>
			<p><em>Note: Current version does not support the full Polldaddy API.</em></p>
            <table class="memberdecls">
                <tr>
                    <th class="memItemLeft">&nbsp;</th>
                    <th class="memItemRight">Method</th>
                    <th class="memItemRight">Requires Initialization</th>
                </tr>
                <tr>
                    <td class="memItemLeft">
                        static void
                    </td>
                    <td class="memItemRight">
                        <strong>Initialize</strong> (string apiKey)
                    </td>
                    <td class="memItemRight">-</td>
                </tr>
                <tr>
                    <td class="mdescLeft">
                        &nbsp;
                    </td>
                    <td class="mdescRight">
                        Initializes the Polldaddy helper with the Polldaddy API key. The API key is a string
                        assigned by Polldaddy to access the the API methods. Click 
                        <a href="http://polldaddy.com/register/">here</a> to obtain an API key.
                    </td>
                    <td class="mdescRight" >&nbsp;</td>
                </tr>
                <tr>
                    <td class="memItemLeft">
                        static string
                    </td>
                    <td class="memItemRight">
                        <strong>GetUserCode</strong> ()
                    </td>
                    <td class="memItemRight">Yes</td>
                </tr>
                <tr>
                    <td class="mdescLeft">
                        &nbsp;
                    </td>
                    <td class="mdescRight">
                        This method retrieves the PollDaddy API Usercode.
                    </td>
                    <td class="mdescRight" >&nbsp;</td>
                </tr>
                <tr>
                    <td class="memItemLeft">
                        static IList&lt;<a href="http://support.polldaddy.com/api/#getpollresults">PollResult</a>&gt;
                    </td>
                    <td class="memItemRight">
                        <b>GetPollResults</b> (string pollId)
                    </td>
                    <td class="memItemRight">Yes</td>
                </tr>
                <tr>
                    <td class="mdescLeft">
                        &nbsp;
                    </td>
                    <td class="mdescRight">
                        This method retrieves the results of the given poll.
                    </td>
                    <td class="mdescRight" >&nbsp;</td>
                </tr>
                <tr>
                    <td class="memItemLeft">
                        static <a href="http://support.polldaddy.com/api/#getpoll">Poll</a>
                    </td>
                    <td class="memItemRight">
                        <strong>GetPoll</strong> (string pollId)
                    </td>
                    <td class="memItemRight">Yes</td>
                </tr>
                <tr>
                    <td class="mdescLeft">
                        &nbsp;
                    </td>
                    <td class="mdescRight">
                        This method retrieves the details of the given poll.
                    </td>
                    <td class="mdescRight" >&nbsp;</td>
                </tr>
                <tr>
                    <td class="memItemLeft">
                        static IList&lt;<a href="http://support.polldaddy.com/api/#getpollcomments">PollComment</a>&gt;
                    </td>
                    <td class="memItemRight">
                        <b>GetPollComments</b> (string pollId)
                    </td>
                    <td class="memItemRight">Yes</td>
                </tr>
                <tr>
                    <td class="mdescLeft">
                        &nbsp;
                    </td>
                    <td class="mdescRight">
                        This method retrieves the list of poll comments.
                    </td>
                    <td class="mdescRight" >&nbsp;</td>
                </tr>
                <tr>
                    <td class="memItemLeft">
                        @helper
                    </td>
                    <td class="memItemRight">
                        <b>GetSurveyLink</b> (string surveyId, [string linkText])
                    </td>
                    <td class="memItemRight">No</td>
                </tr>
                <tr>
                    <td class="mdescLeft">
                        &nbsp;
                    </td>
                    <td class="mdescRight">
                        This method shows a link to open the survey as a website popup.
                    </td>
                    <td class="mdescRight" >&nbsp;</td>
                </tr>
                <tr>
                    <td class="memItemLeft">
                        @helper
                    </td>
                    <td class="memItemRight">
                        <b>GetPollWidget</b> (string pollId)
                    </td>
                    <td class="memItemRight">No</td>
                </tr>
                <tr>
                    <td class="mdescLeft">
                        &nbsp;
                    </td>
                    <td class="mdescRight">
                        This method shows the poll widget.
                    </td>
                    <td class="mdescRight" >&nbsp;</td>
                </tr>
                <tr>
                    <td class="memItemLeft">
                        @helper
                    </td>
                    <td class="memItemRight">
                        <b>GetRatingWidget</b> (string ratingId, [string title], [string permalink])
                    </td>
                    <td class="memItemRight">No</td>
                </tr>
                <tr>
                    <td class="mdescLeft">
                        &nbsp;
                    </td>
                    <td class="mdescRight">
                        This method shows the rating widget.
                    </td>
                    <td class="mdescRight" >&nbsp;</td>
                </tr>
            </table>
        </div>
        <ul class="footer">
            <li>We're always looking for <a href="mailto:webapp@microsoft.com">bugs, feedback and
                suggestions!</a></li>
            <li>&copy; 2010-2011 Microsoft Corporation. Powered by IIS Express.</li>
        </ul>
    </div>
</body>
</html>
